#ifndef __HARDWARE_H__
#define __HARDWARE_H__


#include "config.h"


/*-------------------------LED-------------------------*/
void LED_Init(void);
void LED_Display(u8 led);

/*-------------------------KEY-------------------------*/
#define		KEY1		GPIO_ReadInputDataBit(GPIOA, GPIO_Pin_0)
#define		KEY2		GPIO_ReadInputDataBit(GPIOA, GPIO_Pin_8)
#define		KEY3		GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_1)
#define		KEY4		GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_2)
void KEY_Init(void);
u8 KEY_Scan(void);

/*-------------------------TIM-------------------------*/
void TIM3_Init(void);
void TIM3_PWM(void);
void TIM3_Low(void);

/*-------------------------USART-------------------------*/
void USART2_Init(void);
u8 USART2_SendByte(u8 c);

#endif /*__HARDWARE_H__*/
